import type { RouteRecordRaw } from 'vue-router'

export default [
  {
    path: '/batch',
    name: 'batch',
    redirect: '/batch/list',
    component: () => import('@/layouts/index.vue'),
    meta: { title: { zh_CN: '批次管理', en_US: 'Batch' }, icon: 'money', orderNo: 3 },
    children: [
      {
        path: 'list',
        name: 'BatchList',
        meta: { title: { zh_CN: '批次订单', en_US: 'Batch List' } },
        component: () => import('@/pages/batch/list/index.vue'),
      },
      {
        path: 'use',
        name: 'BatchUse',
        meta: { title: { zh_CN: '批次使用', en_US: 'Batch Use' } },
        component: () => import('@/pages/batch/use/index.vue'),
      },
      {
        path: 'ticket',
        name: 'BatchTicket',
        meta: { title: { zh_CN: '批次票', en_US: 'Batch Ticket' } },
        component: () => import('@/pages/batch/ticket/index.vue'),
      },
    ],
  },
] satisfies RouteRecordRaw[]
